class CreateArticles < ActiveRecord::Migration
  def self.up
    create_table :articles do |t|
      t.string  :title
      t.decimal :user_id ,:precision=>5
      t.text  :content
      t.integer :views
      t.timestamps
    end
  end

  def self.down
    drop_table :articles
  end
end
